package com.eoe.wiki.db;

import java.util.HashMap;
import java.util.Map;

import android.net.Uri;

public class UpdateColumn extends DatabaseColumn {
	
	public final static String TABLE_NAME = "updates";
	
	public final static String URI = "uri";
	public final static String DATE_UPDATE = "date_update";
	
	public final static Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + TABLE_NAME);
	private final static Map<String,String> mColumnMap = new HashMap<String, String>();
	
	static{
		mColumnMap.put(_ID, "integer primary key autoincrement not null");
		mColumnMap.put(URI, "text not null");
		mColumnMap.put(DATE_UPDATE, "localtime");
		mColumnMap.put(DATE_ADD, "localtime");
		mColumnMap.put(DATE_MODIFY, "localtime");
	}
	

	@Override
	public String getTableName() {
		// TODO Auto-generated method stub
		return this.TABLE_NAME;
	}

	@Override
	public Uri getTableContent() {
		// TODO Auto-generated method stub
		return this.CONTENT_URI;
	}

	@Override
	public Map<String, String> getTableMap() {
		// TODO Auto-generated method stub
		return this.mColumnMap;
	}

}
